/**
 * 登录参数
 */
export interface LoginData {
  /**
   * 用户名
   */
  username: string;
  /**
   * 密码
   */
  password: string;
}

/**
 * 用户信息
 */
export interface IUserInfo {
  username: string;
  nickname: string;
  password: string;
  icon: string;
}

/**
 * 登录返回
 */
export interface LoginResult {
  token: string;
  userInfo: IUserInfo;
}

/**
 * 权限路由
 */
export interface IPermissionItem {
  id: string;
  pid: string;
  name: string;
  title: string;
  type: number;
  permissionValue: string | null;
  path: string;
  component: string | null;
  icon: string;
  status: null;
  level: null;
  isSelect: boolean;
  sort: number;
  isDeleted: Boolean;
  redirect: string;
  hidden: boolean;
  alwaysShow: boolean;
  meta: string;
  createTime: string;
  modifyTime: string;
  children: Array<IPermissionItem>;
}
/**
 * 用户菜单及权限
 */
export interface InitMenusResult {
  permissionList: IPermissionItem;
}

export interface CaptchaResult {
  /**
   * 验证码缓存key
   */
  verifyCodeKey: string;
  /**
   * 验证码图片Base64字符串
   */
  verifyCodeBase64: string;
}
